﻿using System;
using TechTalk.SpecFlow;
using UnityScenarios;
using OpenQA.Selenium;
using OpenQA.Selenium.Support;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using NUnit.Framework;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.PageObjects;
using System.Threading;


namespace UnityScenarios
{
    [Binding]
    public class ManageUserOptionSteps
    {
        [Given]
        public void Given_I_move_mouse_over_Administration()
        {
            var ie = ScenarioContext.Current["browser"] as FirefoxDriver;
            ie.FindElement(By.LinkText("ADMINISTRATION")).Click();
        }

        [When]
        public void When_I_click_Manage_Users()
        {
            var ie = ScenarioContext.Current["browser"] as FirefoxDriver;
            ie.FindElement(By.LinkText("Manage Users")).Click();

        }

        [Then]
        public void Then_the_Manage_Users_screen_is_displayed()
        {
            var ie = ScenarioContext.Current["browser"] as FirefoxDriver;
            ie.PageSource.Contains("insertbtn");
            ie.Close();
            ie.Dispose();
        }
    }
}